<?php
class Application_Model_Resumenes extends Zend_Db_Table_Abstract{
    protected $_name='resumen';
    protected $_primary='id_resumen';
    public function getAll()
    {
        return $this->fetchAll();
    }
    public function save($bind)
    {
      //  if(is_null($id)){
            $row=$this->createRow();
      //  }else{
       //     $row=$this->getRow($id);
      //  }
       $hojas=33;
        $row->resumen=$bind['resumen'];
        $row->n_paginas=$bind['nPaginas'];
        $row->n_hojas=$hojas;
        return $row->save(); 
    }
    public function getRow($id_area){
        $id_area=(int)$id_area;
        $row=$this->find($id_area)->current();
        return $row;
    }
}

